import request from '@/utils/request'
import { host } from '@/config'

export function getList(data: any) {
  return request({
    url: `${host}/auth/get?authget`,
    method: 'post',
    data,
  })
}

export function doAdd(data: any) {
  return request({
    url: `${host}/auth/set?authset`,
    method: 'post',
    data,
  })
}

export function doEdit(data: any) {
  return request({
    url: `${host}/auth/update?authupdate`,
    method: 'post',
    data,
  })
}

export function doDelete(data: any) {
  return request({
    url: `${host}/auth/delete?authdelete`,
    method: 'post',
    data,
  })
}

export function doBitchGroupEdit(data: any) {
  return request({
    url: `${host}/admin/batchupdategroup`,
    method: 'post',
    data,
  })
}
